import {RequestMethodType} from "../../request/RequestMethod";
import {ActionHandleType} from "./Action";

class ActionRoute {

    // 请求方式
    method: RequestMethodType = 'GET'
    // 处理方法
    handle: ActionHandleType
    // 转发地址
    forwardPath?: string

    constructor(method: RequestMethodType, handle: ActionHandleType) {
        this.method = method;
        this.handle = handle;
    }
}

export default ActionRoute
